{empty name="data.list"}
<p style="text-align: center; margin-top: 4rem;">暂无订单</p>
{else /}
    {volist name="data.list" id="vo"}
        <div class="lookIndent-list">
            <a href="{:url('shop_order_info', ['id' => $vo.id, 'shop_id' => $shop_id])}" style="width: 100%;">
                <div class="weui-cell"  style="border-radius: 7px 7px 0 0;">
                    <div class="weui-cell__hd indentImg">
                        <img src="{$vo.headimgurl}" alt="">
                    </div>
                    <div class="weui-cell__bd">
                        <p class="fs07">{$vo.nickname}</p>
                        <div class="my-flex1 cl-9999 fs065">
                            下单时间: <span>{$vo.create_time|date="Y-m-d H:i:s", ###}</span>
                        </div>
                    </div>
                    <div class="weui-cell__ft">
                        <p class="cl-c40 fs06">
                            {$vo.status_text}
                        </p>
                    </div>
                </div>
                {empty name="vo.products"}
                <div class="weui-cell confirmOrder">
                    <div class="weui-cell__hd">
                        <img src="__STATIC__/home/images/product3.png" alt="">
                    </div>
                    <div class="weui-cell__bd orderDemand">
                        <p class="fs06 listFont-1">{$vo.msg}</p>
                        <p class="fs06">喝酒时间: <span>{$vo.drink_time|date="m-d H:i", ###}</span></p>
                        <p class="fs06">地址: <span>{$vo.address}</span></p>
                    </div>
                </div>
                {else /}
                {volist name="vo.products" id="v"}
                <div class="weui-cell confirmOrder">
                    <div class="weui-cell__hd">
                        <img src="{$v.image}" alt="">
                    </div>
                    <div class="weui-cell__bd ">
                        <p class="fs06 listFont">{$v.name}</p>
                    </div>
                    <div class="weui-cell__ft fs06">
                        <p>￥{$v.price}</p>
                        <p>x{$v.num}</p>
                    </div>
                </div>
                {/volist}
                {/empty}
            </a>
            <div class="weui-cell">
                <div class="weui-cell__bd">

                </div>
                <div class="weui-cell__ft">
                    {eq name="vo.type" value="1"}
                        <button class="indent-btn-bg">我要喝酒</button>
                        {eq name="vo.status" value="2"}
                            <a href="javascript:;" class="indent-btn-bg push-order" data-order-id="{$vo.id}" data-shop-id="{$shop_id}">推送商品</a>
                            <a href="{:url('shop_order_add_product', ['order_id' => $vo.id, 'id' => $shop_id])}" class="indent-btn-bg">添加商品</a>
                        {/eq}
                    {else /}
                        <button class="indent-btn-bg">酒柜订单</button>
                    {/eq}
                </div>
            </div>
        </div>
    {/volist}
{/empty}
